/**
 * 
 */
package com.rio.dandan.dao.impl;

import com.rio.dandan.dao.DaoSupport;
import com.rio.dandan.dao.UserAlbumDao;
import com.rio.dandan.pojo.UserAlbum;

/**
 * 
 * UserPhotoDaoImpl.java
 * 
 * @author 宋陆
 * @version 1.0 2014年5月22日
 */
public class UserAlbumDaoImpl extends DaoSupport implements UserAlbumDao {

    /**
     * @see com.rio.dandan.dao.UserAlbumDao#getUserAlbum(java.lang.String)
     */
    @Override
    public UserAlbum getUserAlbum(String uid) {
        return get(UserAlbum.class, uid);
    }

    /**
     * @see com.rio.dandan.dao.UserAlbumDao#saveOrUpdateUserAlbum(com.rio.dandan.pojo.UserAlbum)
     */
    @Override
    public UserAlbum saveOrUpdateUserAlbum(UserAlbum userAlbum) {
        super.saveOrUpdate(userAlbum);
        return userAlbum;
    }

}
